@echo off
echo 正在启动前端服务...

REM 检查是否安装了http-server
npm list -g http-server >nul 2>&1
if %errorlevel% neq 0 (
    echo 正在安装http-server...
    npm install -g http-server
)

REM 启动http-server
echo 启动服务在 http://localhost:8080
http-server -p 8080 -c-1

pause